package ooday04;

public class InnerClass {
    public static void main(String[] args) {


        Mather.son a=new Mather(){}.new son();
        a.eat();
        Mather m=new Mather(){};
        m.feed();
        Mather.son s=m.new son();
        int num=2;
        Aooo.booo abo=new Aooo(){
            //num=3;
            void show(){}
        }.new booo(){void showBoo(){}};
        System.out.println( abo instanceof Aooo.booo);

    }
}
 abstract class Mather {
     int ag;

     void feed() {
         System.out.println(this.ag);
     }

     class son {
        int sonName;
         void eat(){
             System.out.println(this.sonName+Mather.this.ag);
         }
     }
 }
 abstract class Aooo{
    int age;
    String name;
    abstract void show();
    abstract class booo extends Aooo{
     int age2;
     void show(){}
        abstract void showBoo();
    }

 }

